package org.openkanban.selenium;

import com.thoughtworks.selenium.Selenium;
import com.thoughtworks.selenium.condition.ConditionRunner;

public class Pages {

	private final Selenium selenium;
	private final ConditionRunner conditionRunner;
	private Welcome welcome;

	// More pages as needed

	public Pages(Selenium selenium, ConditionRunner conditionRunner) {
		this.selenium = selenium;
		this.conditionRunner = conditionRunner;
	}

	public Welcome welcome() {
		if (welcome == null) {
			welcome = new Welcome(selenium, conditionRunner);
		}
		return welcome;
	}

}
